﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LakeSide.Core.Log;

namespace LakeSide.Web.Filter
{
    public class ExceptionFilter : FilterAttribute, IExceptionFilter
    {

        #region IExceptionFilter 成员
        /// <summary>
        /// 重写异常处理
        /// </summary>
        /// <param name="filterContext">异常上下文</param>
        void IExceptionFilter.OnException(ExceptionContext filterContext)
        {
            LogManager.Writer(filterContext.Exception.Message,filterContext.Exception.StackTrace);

            //日志记录完毕之后跳转错误页面
            
        }

        #endregion
    }
}